package com.junqson.je.user.repo;

import com.junqson.je.user.model.UserModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @Descriptions
 * @Company
 * @Author Junqson
 * @Date 2020/1/20 0:23
 * @Version 1.0
 */
@Repository
public interface UserRepo extends JpaRepository<UserModel, Integer> {

    UserModel findByPhone(String phone);

    UserModel findByUserId(Integer userId);
}
